
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="/wondershare/js/jquery.js"></script> 
<script src="/wondershare/js/utils.js"></script> 
<script src="/wondershare/js/bar.js"></script>
<link href="/wondershare/styles/main.css" rel="stylesheet" type="text/css" />
<link href="/wondershare/styles/general.css" rel="stylesheet" type="text/css" />
<title>添加block模块</title>
</head>
<body >
<h1>
<span class="action-span">
<a href="/wondershare/bar.php?action=add_edit&act=add&web_type=<{$web_type}>">添加模块</a>
</span>
<span class="action-span1">
<a href="/wondershare/products.php?action=index&web_type=<{$web_type}>"><{$web_info}>网站产品信息</a>
</span>
<span id="search_id" class="action-span1"> > 右侧推荐模块</span>
<div style="clear:both"></div>
</h1>


<form method="POST" action="/wondershare/bar.php?action=index&web_type=<{$web_type}>">
    <img height="22" border="0" width="26" alt="SEARCH" src="images/icon_search.gif">
    模块名称：<input type="text" size="25" name="block_name" style="margin-right:30px;" value="<{if $block_name == '' }>输入模块名称<{else}><{$block_name|escape}><{/if}>" onblur="if(this.value=='')this.value='输入模块名称';" onclick="if(this.value=='输入模块名称')this.value=''" >
        <!-- 关键字 -->
    模块显示标题：<input type="text" size="25" name="block_title" value="<{if $block_title == '' }>输入显示标题<{else}><{$block_title|escape}><{/if}>" onblur="if(this.value=='')this.value='输入显示标题';" onclick="if(this.value=='输入显示标题')this.value=''">
    <input type="submit" class="button"  name="search" value="搜索 ">
</form>
<table width="100%" cellspacing="1" cellpadding="2" id="list-table" class="list-div">
<tbody>
  <tr>
    <th >ID</th>
    <th>模块名称</th>
	<th>显示标题</th>
	<th>描述内容</th>
    <!--<th>链接</th>-->
    <th>图片路径</th>
  <!-- <th>更多或来源字样</th>-->
    <th>操作人员</th>
    <th>最后操作人员</th>
    <th>编辑</th>
  </tr>
<{foreach from=$bar_info item=bar}>
  <tr align="center"  id="tr_<{$bar.block_id}>">
	<td width="8%" align="center"  >
	    <input value="<{$bar.block_id}>" name="ID[]" type="checkbox" > <{$bar.block_id}>
	</td><td width="10%" align="center"><{$bar.block_name|escape}></td>
	<td width="10%"><{$bar.block_title|escape}></td>
	<td width="30%" align="center"><{$bar.block_content|escape}></td>
	
 	<td width="10%" align="center">
	<{$bar.block_pic|escape}>
	</td>
 
 	<td width="10%" align="center">
	<{$bar.block_update_user|escape}>
	</td>
 	<td width="10%" align="center">
	<{$bar.updatetime}>
	</td> 
	<td width="12%" align="center">
     <a href="#" onclick="delete_bar(<{$bar.block_id}>,'in_delete','bar')" >删除</a> | 
	<a href="/wondershare/bar.php?action=add_edit&act=edit&block_id=<{$bar.block_id}>&web_type=<{$web_type}>" > 编辑 </a>
    </td>
  </tr>
 <{/foreach}>

  <tr>
	    <td align="center"><input name="checkall" value="checked"    onclick="v=document.getElementsByName('ID[]');if(this.checked){for(i=0;i<v.length;i++)v[i].checked=true;}else{for(i=0;i<v.length;i++)v[i].checked=false;}" type="checkbox" >全选</td>
		<td colspan="9">
      
		<input name="sub" value="删除" type="button" onclick="delete_bar(0,'list','bar');">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<{$page_url}> &nbsp;&nbsp;&nbsp; 共有 <span id="total"><{$total}> </span>条记录</td>
	</tr>
  </tbody>
</table>
</body>
</html>